<?php
// Cache configuration
return array(
    // Stystem system cache used for system configs and lang files  
    // No need to use in file backend
	'system_cache' => array(
            'frontend' => array(
                'name' => 'Core',
                'options' => array(
                    'lifetime' => 604800, // 7 days
                    'automatic_serialization' => true,
                    'caching' =>false,
                    'automatic_cleaning_factor'=>1
                )
            ),
            'backend' => array(
                'name' => 'File',
                'options' => array(
                        /*
                         * String [system temp dir] Directory where to store cache files
                         */
                        'cache_dir'=>$_SERVER['DOCUMENT_ROOT'].'/.cache/', 
                        /*
                         * Boolean 	TRUE Enable or disable file_locking : 
                         * Can avoid cache corruption under bad circumstances but it doesn't help on 
                         * multithread webservers or on NFS filesystems...
                         */
                        'file_locking'=>true,
                        /*
                         * Boolean 	TRUE 	Enable / disable read control : 
                         * if enabled, a control key is embedded in the cache file and this key 
                         * is compared with the one calculated after the reading.
                         */
                        'read_control'=>true,
                         /*
                          * String 	'crc32' Type of read control (only if read control is enabled). 
                          * Available values are : 
                          * 'md5' (best but slowest), 
                          * 'crc32' (lightly less safe but faster, better choice), 
                          * 'adler32' (new choice, faster than crc32), 
                          * 'strlen' for a length only test (fastest).
                          */
                        'read_control_type'=>'md5',
                        /*
                         * Integer 	0 	Hashed directory structure level : 
                         * 0 means "no hashed directory structure", 
                         * 1 means "one level of directory", 
                         * 2 means "two levels"... 
                         * This option can speed up the cache only when you have many thousands of cache files. 
                         * Only specific benchs can help you to choose the perfect value for you. 
                         * Maybe, 1 or 2 is a good start.
                         */
                        'hashed_directory_level'=> 0,
                        /*
                         * Integer 	0700 	Umask for the hashed directory structure
                         */
                        'hashed_directory_umask'=>0700, 
            	        /*
            	         * String 	'zend_cache' 	prefix for cache files ; 
            	         * be really careful with this option because a too 
            	         * generic value in a system cache dir (like /tmp)
            	         * can cause disasters when cleaning the cache
            	         */    
                        'file_name_prefix'=>'system_cache',
                        /*
                         * Integer 	0600 umask for cache files
                         */
                         'cache_file_umask'=>0600,
                        /*
                         * Integer 	100 internal max size for the metadatas array 
                         * (don't change this value unless you know what you are doing) 
                         */
                         'metatadatas_array_max_size'=>100
                )
            )
      ),
	// Data cache used for data      
	'data_cache'=>array(
           'frontend' => array(
                'name' => 'Core',
                'options' => array(
                    'lifetime' => 259200, // 3 days
                    'automatic_serialization' => true,
                    'caching' =>true,
                    'automatic_cleaning_factor'=>1
                )
            ),
            'backend' => array(
                'name' => 'File',
                'options' => array(
                        'cache_dir'=>$_SERVER['DOCUMENT_ROOT'].'/.cache/', 
                        'file_locking'=>true,
                        'read_control'=>true,
                        'read_control_type'=>'md5',
                        'hashed_directory_level'=> 3,
                        'hashed_directory_umask'=>0700, 
                        'file_name_prefix'=>'data_cache',
                        'cache_file_umask'=>0600,
                        'metatadatas_array_max_size'=>100
                )
            )
      )
);      